package com.wanmait.translate.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
@JsonIgnoreProperties(value = { "handler"})
public class SystemUser implements Serializable {
    private Integer id;

    /**
	* 用户的工号
	*/
    private Integer userNum;

    /**
	* 真实姓名
	*/
    private String name;

    /**
	* 用户名
	*/
    private String username;

    /**
	* 密码
	*/
    private String password;

    /**
	* 盐加密
	*/
    private String salt;

    /**
	* 是否停用
	*/
    private Integer state;

    /**
	* 联系方式
	*/
    private Integer telephone;

    /**
	* 省份证号
	*/
    private Integer card;

    /**
	* 婚姻状态
	*/
    private Integer maritalStatus;

    /**
	* 创建时间
	*/
    private Date inputTime;

    /**
	* 修改时间
	*/
    private Date updateTime;

    /**
	* 头像
	*/
    private String imageUrl;

    /**
	* 邮箱
	*/
    private String email;

    /**
	* 学历  字典ID（根据id在字典里查）system_dict_degree
	*/
    private SystemDict systemDict;

    /**
	* 用户性别
	*/
    private Integer sex;

    /**
	* 是否删除(0正常 1逻辑删除）
	*/
    private Integer enable;

    private List<SystemPost>  systemPosts;

    public List<SystemPost> getSystemPosts() {
        return systemPosts;
    }

    public void setSystemPosts(List<SystemPost> systemPosts) {
        this.systemPosts = systemPosts;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserNum() {
        return userNum;
    }

    public void setUserNum(Integer userNum) {
        this.userNum = userNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getTelephone() {
        return telephone;
    }

    public void setTelephone(Integer telephone) {
        this.telephone = telephone;
    }

    public Integer getCard() {
        return card;
    }

    public void setCard(Integer card) {
        this.card = card;
    }

    public Integer getMaritalStatus() {
        return maritalStatus;
    }

    public void setMaritalStatus(Integer maritalStatus) {
        this.maritalStatus = maritalStatus;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public SystemDict getSystemDict() {
        return systemDict;
    }

    public void setSystemDict(SystemDict systemDict) {
        this.systemDict = systemDict;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        return "SystemUser{" +
                "id=" + id +
                ", userNum=" + userNum +
                ", name='" + name + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", state=" + state +
                ", telephone=" + telephone +
                ", card=" + card +
                ", maritalStatus=" + maritalStatus +
                ", inputTime=" + inputTime +
                ", updateTime=" + updateTime +
                ", imageUrl='" + imageUrl + '\'' +
                ", email='" + email + '\'' +
                ", dictDegree=" + systemDict +
                ", sex=" + sex +
                ", enable=" + enable +
                ", systemPosts=" + systemPosts +
                '}';
    }
}